package SMS.model;

import lombok.Data;

/**
 * @author:  王天宇
 */
@Data
public class Res<T> {
    private int code;
    private String message;
    private T data;

    public Res(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    @Override
    public String toString() {
        return "Res{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
